package com.speedchina.common.redis.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * redis集群配置类
 * @author Administrator
 */
@Data
@Configuration
public class ClusterPropertis {
    @Value("${spring.redis.cluster.nodes:10.5.42.5:7001,10.5.42.5:7002,10.5.42.5:7003,10.5.42.9:7001,10.5.42.9:7002,10.5.42.9:7003}")
    private String nodes;
    @Value("${spring.redis.cluster.max-redirects:3}")
    private Integer maxRedirects;
}
